<%@include file="/header.jsp" %>
<c:url value="/customer/MyAccount" var="myAccountUrl" />
<c:url value="/customer/OrderHistory" var="orderHistoryUrl" />


<div id="breadcrump">
    <ul id="breadcrump-list">
        <li>&raquo; <a href="${myAccountUrl}">Mijn account</a> &raquo; <a href="${orderHistoryUrl}">Order historie</a> &raquo; Order details</li>
    </ul>
</div>

<table border="1">
    <tr>
        <th>Afbeelding</th>
        <th>Productnummer</th>
        <th>Product naam</th>
        <th>Beschrijving</th>
        <th>Prijs</th>
    </tr>
    <c:forEach var="orderItem" items="${currentOrder.orderItems}">
        <c:url value="/ShowImage" var="imageUrl">
            <c:param name="id" value="${orderItem.product.image.id}" />
        </c:url>
        
        <tr>
            <td><img src="${imageUrl}" width="150px" /></td>
            <td>${orderItem.product.id}</td>
            <td>${orderItem.product.name}</td>
            <td>${orderItem.product.description}</td>
            <td>${orderItem.product.price}</td> 
        </tr>
    </c:forEach>
</table>
<a href="${orderHistoryUrl}">Terug</a>

<%@include file="/footer.jsp" %>

